package com.android.jay.lib_network.okhttp.exception;

/**
 * Created by wzp on 2019/12/28 0028.
 * <p>
 * 描述  ：自定义异常类 返回 ecode emsg到业务层
 */
public class OkHttpException extends Exception {

    private static final long seriaVersionUID  = 1L;

    private int ecode;

    private Object emsg;

    public OkHttpException(int ecode, Object emsg) {
        this.ecode = ecode;
        this.emsg = emsg;
    }

    public int getEcode() {
        return ecode;
    }

    public Object getEmsg() {
        return emsg;
    }
}
